package com.ruoyi.web.controller.system.Fdongbei;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.system.Fdongbei.domain.TbSuoshugongsi;
import com.ruoyi.system.Fdongbei.service.ITbSuoshugongsiService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import static com.ruoyi.common.core.domain.AjaxResult.success;
import static com.ruoyi.common.core.domain.R.ok;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author fufeng
 * @since 2024-12-18
 */
@RestController
@RequestMapping("/system/tb-suoshugongsi")
public class TbSuoshugongsiController {



    @Resource
    ITbSuoshugongsiService tbSuoshugongsiService;


    @PostMapping("/insertTbsuoshugongsi")
    public AjaxResult insertTbsuoshugongsi(@RequestBody TbSuoshugongsi tbsuoshugongsi){
        return success(tbSuoshugongsiService.insertTbsuoshugongsi(tbsuoshugongsi));
    }




    @PostMapping("/deletessgsbyczbh")
    public AjaxResult deletessgsbyczbh(String czbh){
        return success(tbSuoshugongsiService.deletessgsbyczbh(czbh));
    }






}

